package cn.brian.modular.sys.controller;

import cn.brian.modular.sys.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {
    @Autowired
    UserService userService;

    @RequestMapping("/rule")
    public String rule(){
        userService.save();
        return "rule";
    }
}
